<script setup>
import {ref} from 'vue'

const showPopover = ref(false)

const onClick = () => {
  showPopover.value = !showPopover.value
}
</script>

<template>
  <van-icon name="info-o" @click="onClick"/>
  <van-popover v-model:show="showPopover">
    <template #reference>
      <van-button type="primary">水平排列</van-button>
    </template>
  </van-popover>
</template>

<style scoped lang="scss">

</style>